<template>
  <a-result status="success" :title="title">
    <template #extra>
      <!-- <a-button key="console" type="primary">Go Console</a-button> -->
      <a-button @click="back" key="buy" type="primary">{{ $t('app.setting.themecolor.rr') }}</a-button>
    </template>
  </a-result>
</template>
<script>
export default {
  props:{
    type:{
      type:String,
      required: true
    }
  },
  data() {
    return {
      title:"",
    }
  },
  methods: {
    back() {
      this.$emit('close')
    }
  },
  mounted() {
    if (this.type === 'edit') {
      this.title = this.$t('user.verification-code.required111566171.save')
    }else {
      this.title = this.$t('user.verification-code.required111566171')
    }
  },
}
</script>